# -*- conding:UTF-8 -*-

'''
@ Project: take_out_food
@ File: serializer.py
@ Author: 韩成瑾
@ Date：2022/8/24 19:23

'''

from rest_framework.serializers import ModelSerializer
from user.models import User, Address


# 用户
class UserSerializer(ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'

# 地址
class AddrSerializer(ModelSerializer):
    class Meta:
        model = Address
        fields = '__all__'




